<template>
    <div>
        <h3>机构管理</h3>
    <el-table
      :data="school_list"
      style="width: 50%">
      <el-table-column
        prop="create_date"
        label="创建日期"
        width="210">
      </el-table-column>
      <el-table-column
        prop="name"
        label="名称"
        width="180">
      </el-table-column>
      <el-table-column
        prop="desc"
        label="简介">
      </el-table-column>
        <el-table-column
        prop="user_name"
        label="创建人">
      </el-table-column>
      <el-table-column
        prop=""
        label="操作">
        <el-button>11</el-button>
      </el-table-column>
    </el-table>
    </div>
</template>

<script>
import Axios from 'axios'
export default {
    name: '',
    data() {
        return {
            school_list:[],
        };
    },
    props: {},

    components: {},

    created() {},

    mounted() {
        Axios.get("http://127.0.0.1:8000/api/users/schools/",{
            headers: { token: localStorage.getItem("token") || "" },
        }).then(res=>{
            console.log("获取机构>>>",res)
            if (res.data.code==200){
                this.school_list = res.data.data
            }
        })
    },

    methods: {},

    computed: {},

    watch: {},

    directives: {},

    filters: {}
};
</script>

<style>
* {
    margin: 0;
}
</style>
